*********************************************************************
*********************************************************************
**
**	Recent Item Block
**	With ACP Support and Wowhead tooltip
**
**	Author: Teksonic (teksonic@rogers.com)
**
**	Feature's / Version Info
**	Ver 0.1.1
**	BUG ~ Code Correction
**
**	Ver 0.1.0
**	- WotLK Raid's (exculding Vault of Arachavon)
**	- 5 Individual loot per raid instances
**	- Link back to wowhead for each item
**	- Full ACP support
**	- Admin Log tracking
**	- Wowhead tooltip (by Crackp0t: wowhead.crackpot.us/)
**	
*********************************************************************
*********************************************************************
**
**	Version: 0.1.1
**	Install Difficulty: Easy
**	Install Time: 10
**
*********************************************************************
*********************************************************************

Always backup any files you are working on before making changes.

Inculded Files:
Raid Progress Install.txt
portal/block/recent_item.php
styles/prosilver/template/portal/block/recent_item.html
styles/subsilver2/template/portal/block/recent_item.html

Upload all included files keeping the directory structure intacted.

Files to Edit:
portal.php
styles/<your theme>/template/portal/portal_body.html
language/en/acp/common.php
language/en/portal.php
language/en/acp/portal.php
includes/functions.php
includes/acp/info/acp_portal.php
includes/acp/acp_portal.php


*********************************************************************
*********************************************************************
**
**	BACKUP YOUR FILES!
**
*********************************************************************
*********************************************************************


**  Open:
*****************
portal.php (you may have changed the name of this file so be careful)

Find:

	if ($portal_config['portal_welcome'])
	{
		include($phpbb_root_path . 'portal/block/welcome.'.$phpEx);
	}

After Add:

	if ($portal_config['portal_recent_item'])
	{
		include($phpbb_root_path . 'portal/block/recent_item.'.$phpEx);
	}

**  Open:
*****************
styles/<your theme>/template/portal/portal_body.html

Insert:
(Place this code in the position you would like your block to appear on the portal)

		<!-- IF S_DISPLAY_RECENT_ITEM -->
    		<!-- INCLUDE portal/block/recent_item.html -->
		<!-- ENDIF -->

**  Open:
*****************
language/en/mods/lang_portal.php

Find:

'SPONSOR'	=> 'Sponsors',

Add After:

	// Recent Item
	'RECENT_ITEM'			=> 'Recent Item\'s',
	'NAXX'					=> 'Naxxramas',
	'EOE'					=> 'The Eye of Eternity',
	'OS'					=> 'The Obsidian Sanctum',
	'ULDUAR'				=> 'Ulduar',

**  Open:
*****************
language/en/mods/info_acp_portal.php

Find:

'ACP_PORTAL_FRIENDS_INFO'					=> 'Friends',

After Add:

'ACP_PORTAL_RECENT_ITEM_INFO'				=> 'Recent Item\'s Block',	
	
**  Open:
*****************
language/en/mods/lang_portal_acp.php

Find:

'PORTAL_MINICALENDAR_DAY_LINK_COLOR_EXPLAIN'=> 'HEX or named colors are allowed such as #FFFFFF for white, or color names like violet.',

After Add:

	//Recent Item's
	'ACP_PORTAL_RECENT_ITEM_INFO_EXPLAIN'		=> 'Edit your Recent Item\'s, don\'t forget to save your changes.',
	'RECENT_ITEM'								=> 'Recent Item Block status',
	'RECENT_ITEM_EXPLAIN'						=> 'Show or Hide the Recent Item Block.',
	'INAME'										=> 'Wowhead Item Name',
	'INAME_EXPLAIN'								=> 'Note: INCLUDE the encapsulating brackets ie: [Dirge].',
	'INUM1'										=> '1. Wowhead Item Number',
	'INUM2'										=> '2. Wowhead Item Number',
	'INUM3'										=> '3. Wowhead Item Number',
	'INUM4'										=> '4. Wowhead Item Number',
	'INUM5'										=> '5. Wowhead Item Number',
	'NAXX'										=> 'Naxxramas',
	'EOE'										=> 'The Eye of Eternity',
	'OS'										=> 'The Obsidian Sanctum',
	'DISPLAY'									=> 'Display Raid',
	'ULDUAR'									=> 'Ulduar',
	'SAVE'										=> 'Save',


**  Open:
*****************
includes/functions.php

Find:

'T_RANKS_PATH'			=> "{$phpbb_root_path}{$config['ranks_path']}/",

After Add:

'T_WOWHEAD_IPATH'		=> "http://www.wowhead.com/?item=",


**  Open:
*****************
includes/acp/info/acp_portal.php

Find:

'minicalendar'	=> array('title' => 'ACP_PORTAL_MINICALENDAR_INFO', 'auth' => 'acl_a_portal_manage', 'cat' => array('ACP_PORTAL_INFO')),

After Add:

'recent_item'	=> array('title' => 'ACP_PORTAL_RECENT_ITEM_INFO', 'auth' => 'acl_a_portal_manage', 'cat' => array('ACP_PORTAL_INFO')),


**  Open:
*****************
includes/acp/acp_portal.php

Find:

			default:
				trigger_error('NO_MODE', E_USER_ERROR);
			break;

Before Add:

case 'recent_item':
				$display_vars = array(
					'title'	=> 'ACP_PORTAL_RECENT_ITEM_INFO',
					'vars'	=> array(
						'legend1'		=> 'ACP_PORTAL_RECENT_ITEM_INFO',
						'portal_recent_item' 		=> array('lang' => 'RECENT_ITEM', 'validate' => 'bool', 'type' => 'radio:yes_no', 'explain' => true),
						
						'legend2'		=> 'NAXX',
						'portal_show_naxx'  			=> array('lang' => 'DISPLAY',   'validate' => 'bool',   	'type' => 'radio:yes_no',   'explain' => true),
						'portal_naxx_inum01'			=> array('lang' => 'INUM1', 'validate' => 'text', 'type' => 'text:5:5', 'explain' => true),
						'portal_naxx_iname01'			=> array('lang' => 'INAME', 'validate' => 'text', 'type' => 'text:60:60', 'explain' => true),
						'portal_naxx_inum02'			=> array('lang' => 'INUM2', 'validate' => 'text', 'type' => 'text:5:5', 'explain' => true),
						'portal_naxx_iname02'			=> array('lang' => 'INAME', 'validate' => 'text', 'type' => 'text:60:60', 'explain' => true),
						'portal_naxx_inum03'			=> array('lang' => 'INUM3', 'validate' => 'text', 'type' => 'text:5:5', 'explain' => true),
						'portal_naxx_iname03'			=> array('lang' => 'INAME', 'validate' => 'text', 'type' => 'text:60:60', 'explain' => true),
						'portal_naxx_inum04'			=> array('lang' => 'INUM4', 'validate' => 'text', 'type' => 'text:5:5', 'explain' => true),
						'portal_naxx_iname04'			=> array('lang' => 'INAME', 'validate' => 'text', 'type' => 'text:60:60', 'explain' => true),
						'portal_naxx_inum05'			=> array('lang' => 'INUM5', 'validate' => 'text', 'type' => 'text:5:5', 'explain' => true),
						'portal_naxx_iname05'			=> array('lang' => 'INAME', 'validate' => 'text', 'type' => 'text:60:60', 'explain' => true),
						
						'legend3'		=> 'EOE',
						'portal_show_eoe'  				=> array('lang' => 'DISPLAY',   'validate' => 'bool',   	'type' => 'radio:yes_no',   'explain' => true),
						'portal_eoe_inum01'				=> array('lang' => 'INUM1', 'validate' => 'text', 'type' => 'text:5:5', 'explain' => true),
						'portal_eoe_iname01'			=> array('lang' => 'INAME', 'validate' => 'text', 'type' => 'text:60:60', 'explain' => true),
						'portal_eoe_inum02'				=> array('lang' => 'INUM2', 'validate' => 'text', 'type' => 'text:5:5', 'explain' => true),
						'portal_eoe_iname02'			=> array('lang' => 'INAME', 'validate' => 'text', 'type' => 'text:60:60', 'explain' => true),
						'portal_eoe_inum03'				=> array('lang' => 'INUM3', 'validate' => 'text', 'type' => 'text:5:5', 'explain' => true),
						'portal_eoe_iname03'			=> array('lang' => 'INAME', 'validate' => 'text', 'type' => 'text:60:60', 'explain' => true),
						'portal_eoe_inum04'				=> array('lang' => 'INUM4', 'validate' => 'text', 'type' => 'text:5:5', 'explain' => true),
						'portal_eoe_iname04'			=> array('lang' => 'INAME', 'validate' => 'text', 'type' => 'text:60:60', 'explain' => true),
						'portal_eoe_inum05'				=> array('lang' => 'INUM5', 'validate' => 'text', 'type' => 'text:5:5', 'explain' => true),
						'portal_eoe_iname05'			=> array('lang' => 'INAME', 'validate' => 'text', 'type' => 'text:60:60', 'explain' => true),
						
						'legend4'		=> 'OS',
						'portal_show_os'  				=> array('lang' => 'DISPLAY',   'validate' => 'bool',   	'type' => 'radio:yes_no',   'explain' => true),
						'portal_os_inum01'				=> array('lang' => 'INUM1', 'validate' => 'text', 'type' => 'text:5:5', 'explain' => true),
						'portal_os_iname01'				=> array('lang' => 'INAME', 'validate' => 'text', 'type' => 'text:60:60', 'explain' => true),
						'portal_os_inum02'				=> array('lang' => 'INUM2', 'validate' => 'text', 'type' => 'text:5:5', 'explain' => true),
						'portal_os_iname02'				=> array('lang' => 'INAME', 'validate' => 'text', 'type' => 'text:60:60', 'explain' => true),
						'portal_os_inum03'				=> array('lang' => 'INUM3', 'validate' => 'text', 'type' => 'text:5:5', 'explain' => true),
						'portal_os_iname03'				=> array('lang' => 'INAME', 'validate' => 'text', 'type' => 'text:60:60', 'explain' => true),
						'portal_os_inum04'				=> array('lang' => 'INUM4', 'validate' => 'text', 'type' => 'text:5:5', 'explain' => true),
						'portal_os_iname04'				=> array('lang' => 'INAME', 'validate' => 'text', 'type' => 'text:60:60', 'explain' => true),
						'portal_os_inum05'				=> array('lang' => 'INUM5', 'validate' => 'text', 'type' => 'text:5:5', 'explain' => true),
						'portal_os_iname05'				=> array('lang' => 'INAME', 'validate' => 'text', 'type' => 'text:60:60', 'explain' => true),
						
						'legend5'		=> 'ULDUAR',
						'portal_show_ulduar'  			=> array('lang' => 'DISPLAY',   'validate' => 'bool',   	'type' => 'radio:yes_no',   'explain' => true),
						'portal_ulduar_inum01'			=> array('lang' => 'INUM1', 'validate' => 'text', 'type' => 'text:5:5', 'explain' => true),
						'portal_ulduar_iname01'			=> array('lang' => 'INAME', 'validate' => 'text', 'type' => 'text:60:60', 'explain' => true),
						'portal_ulduar_inum02'			=> array('lang' => 'INUM2', 'validate' => 'text', 'type' => 'text:5:5', 'explain' => true),
						'portal_ulduar_iname02'			=> array('lang' => 'INAME', 'validate' => 'text', 'type' => 'text:60:60', 'explain' => true),
						'portal_ulduar_inum03'			=> array('lang' => 'INUM3', 'validate' => 'text', 'type' => 'text:5:5', 'explain' => true),
						'portal_ulduar_iname03'			=> array('lang' => 'INAME', 'validate' => 'text', 'type' => 'text:60:60', 'explain' => true),
						'portal_ulduar_inum04'			=> array('lang' => 'INUM4', 'validate' => 'text', 'type' => 'text:5:5', 'explain' => true),
						'portal_ulduar_iname04'			=> array('lang' => 'INAME', 'validate' => 'text', 'type' => 'text:60:60', 'explain' => true),
						'portal_ulduar_inum05'			=> array('lang' => 'INUM5', 'validate' => 'text', 'type' => 'text:5:5', 'explain' => true),
						'portal_ulduar_iname05'			=> array('lang' => 'INAME', 'validate' => 'text', 'type' => 'text:60:60', 'explain' => true),
						
						'legend6'		=> 'SAVE',
		
					)
				);
			break;

**  End
*****************


Save and Upload all files.

Add the Recent Item's Module
ACP -> System -> ACP -> .Mods -> Portal
From the drop down in the bottom corner choose
"Recent Item's Block"
Click Add Module. Then Enable the module.

Configure the Recent Item's in the ACP
ACP -> .Mods -> Portap -> Recent Item's


Clear your cache
Enjoy.